
import request from '@/utils/request';
export function customerlistInfo(query) {
    return request({
        url: '/customernurseitem/page',
        method: 'get',
        params: query
    })
}
export function itemListInfo(query){
    return request({
        url: '/customernurseitem/listitem',
        method: 'get',
        params: query
    })
}
export function userList(query){
    return request({
        url: '/user/page',
        method: 'get',
        params: query
    })
}
export function listUnSet(query){
    return request({
        url: '/customernurseitem/unset/page',
        method: 'get',
        params: query
    })
}
export function listSet(query){
    return request({
        url: '/customernurseitem/set/page',
        method: 'get',
        params: query
    })
}
export function getById(id) {
    return request({
        url: '/customernurseitem/getbyid/'+id,
        method: 'get',
    })
}
export function saveOrUpdate(query){
    return request({
        url: '/customernurseitem/saveorupdate',
        method: 'post',
        data: query
    })
}

export function update(query){
    return request({
        url: '/customernurseitem/update',
        method: 'post',
        data: query
    })
}

export function updateadd(query){
    return request({
        url: '/customernurseitem/updateadd',
        method: 'post',
        data: query
    })
}

export function addSet(query){
    return request({
        url: '/customernurseitem/addset',
        method: 'post',
        data: query
    })
}
export function deleteSet(id){
    return request({
        url: '/customernurseitem/'+id,
        method: 'delete',
    })
}
export function deleteSetItem(id){
    return request({
        url: '/customernurseitem/deleteitem/'+id,
        method: 'delete',
    })
}

export function deleteById(id){
    return request({
        url: '/customernurseitem/deleteById/'+id,
        method: 'delete',
    })
}
export function customerNurseItemDetails(query) {
    return request({
        url: '/customernurseitem/details',
        method: 'get',
        params: query
    })
}
